package com.chinameyer.workorders.dto.user;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Author meyer@HongYe
 */
@Data
@NoArgsConstructor
public class ChangePasswordDTO {
    @NotBlank(message = "新密码不能为空")
    @Pattern(regexp = "[A-Za-z0-9]{6,22}",message = "密码长度需要在6-22位之间，包含字母与数字")
    private String newPassword;
    private String confirmPassword;
}
